package cn.com.lsy.product.lepao.model.entities;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LpTrainBasicinfoTblExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LpTrainBasicinfoTblExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRestTimeIsNull() {
            addCriterion("rest_time is null");
            return (Criteria) this;
        }

        public Criteria andRestTimeIsNotNull() {
            addCriterion("rest_time is not null");
            return (Criteria) this;
        }

        public Criteria andRestTimeEqualTo(String value) {
            addCriterion("rest_time =", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeNotEqualTo(String value) {
            addCriterion("rest_time <>", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeGreaterThan(String value) {
            addCriterion("rest_time >", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeGreaterThanOrEqualTo(String value) {
            addCriterion("rest_time >=", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeLessThan(String value) {
            addCriterion("rest_time <", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeLessThanOrEqualTo(String value) {
            addCriterion("rest_time <=", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeLike(String value) {
            addCriterion("rest_time like", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeNotLike(String value) {
            addCriterion("rest_time not like", value, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeIn(List<String> values) {
            addCriterion("rest_time in", values, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeNotIn(List<String> values) {
            addCriterion("rest_time not in", values, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeBetween(String value1, String value2) {
            addCriterion("rest_time between", value1, value2, "restTime");
            return (Criteria) this;
        }

        public Criteria andRestTimeNotBetween(String value1, String value2) {
            addCriterion("rest_time not between", value1, value2, "restTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andObjectiveIsNull() {
            addCriterion("objective is null");
            return (Criteria) this;
        }

        public Criteria andObjectiveIsNotNull() {
            addCriterion("objective is not null");
            return (Criteria) this;
        }

        public Criteria andObjectiveEqualTo(String value) {
            addCriterion("objective =", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveNotEqualTo(String value) {
            addCriterion("objective <>", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveGreaterThan(String value) {
            addCriterion("objective >", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveGreaterThanOrEqualTo(String value) {
            addCriterion("objective >=", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveLessThan(String value) {
            addCriterion("objective <", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveLessThanOrEqualTo(String value) {
            addCriterion("objective <=", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveLike(String value) {
            addCriterion("objective like", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveNotLike(String value) {
            addCriterion("objective not like", value, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveIn(List<String> values) {
            addCriterion("objective in", values, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveNotIn(List<String> values) {
            addCriterion("objective not in", values, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveBetween(String value1, String value2) {
            addCriterion("objective between", value1, value2, "objective");
            return (Criteria) this;
        }

        public Criteria andObjectiveNotBetween(String value1, String value2) {
            addCriterion("objective not between", value1, value2, "objective");
            return (Criteria) this;
        }

        public Criteria andDurationIsNull() {
            addCriterion("duration is null");
            return (Criteria) this;
        }

        public Criteria andDurationIsNotNull() {
            addCriterion("duration is not null");
            return (Criteria) this;
        }

        public Criteria andDurationEqualTo(Integer value) {
            addCriterion("duration =", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotEqualTo(Integer value) {
            addCriterion("duration <>", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThan(Integer value) {
            addCriterion("duration >", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("duration >=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThan(Integer value) {
            addCriterion("duration <", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThanOrEqualTo(Integer value) {
            addCriterion("duration <=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationIn(List<Integer> values) {
            addCriterion("duration in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotIn(List<Integer> values) {
            addCriterion("duration not in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationBetween(Integer value1, Integer value2) {
            addCriterion("duration between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("duration not between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andTrainDayIsNull() {
            addCriterion("train_day is null");
            return (Criteria) this;
        }

        public Criteria andTrainDayIsNotNull() {
            addCriterion("train_day is not null");
            return (Criteria) this;
        }

        public Criteria andTrainDayEqualTo(Integer value) {
            addCriterion("train_day =", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayNotEqualTo(Integer value) {
            addCriterion("train_day <>", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayGreaterThan(Integer value) {
            addCriterion("train_day >", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("train_day >=", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayLessThan(Integer value) {
            addCriterion("train_day <", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayLessThanOrEqualTo(Integer value) {
            addCriterion("train_day <=", value, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayIn(List<Integer> values) {
            addCriterion("train_day in", values, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayNotIn(List<Integer> values) {
            addCriterion("train_day not in", values, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayBetween(Integer value1, Integer value2) {
            addCriterion("train_day between", value1, value2, "trainDay");
            return (Criteria) this;
        }

        public Criteria andTrainDayNotBetween(Integer value1, Integer value2) {
            addCriterion("train_day not between", value1, value2, "trainDay");
            return (Criteria) this;
        }

        public Criteria andDayAvgIsNull() {
            addCriterion("day_avg is null");
            return (Criteria) this;
        }

        public Criteria andDayAvgIsNotNull() {
            addCriterion("day_avg is not null");
            return (Criteria) this;
        }

        public Criteria andDayAvgEqualTo(Integer value) {
            addCriterion("day_avg =", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgNotEqualTo(Integer value) {
            addCriterion("day_avg <>", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgGreaterThan(Integer value) {
            addCriterion("day_avg >", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgGreaterThanOrEqualTo(Integer value) {
            addCriterion("day_avg >=", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgLessThan(Integer value) {
            addCriterion("day_avg <", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgLessThanOrEqualTo(Integer value) {
            addCriterion("day_avg <=", value, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgIn(List<Integer> values) {
            addCriterion("day_avg in", values, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgNotIn(List<Integer> values) {
            addCriterion("day_avg not in", values, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgBetween(Integer value1, Integer value2) {
            addCriterion("day_avg between", value1, value2, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andDayAvgNotBetween(Integer value1, Integer value2) {
            addCriterion("day_avg not between", value1, value2, "dayAvg");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataIsNull() {
            addCriterion("stamina_lv_data is null");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataIsNotNull() {
            addCriterion("stamina_lv_data is not null");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataEqualTo(String value) {
            addCriterion("stamina_lv_data =", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataNotEqualTo(String value) {
            addCriterion("stamina_lv_data <>", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataGreaterThan(String value) {
            addCriterion("stamina_lv_data >", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataGreaterThanOrEqualTo(String value) {
            addCriterion("stamina_lv_data >=", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataLessThan(String value) {
            addCriterion("stamina_lv_data <", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataLessThanOrEqualTo(String value) {
            addCriterion("stamina_lv_data <=", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataLike(String value) {
            addCriterion("stamina_lv_data like", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataNotLike(String value) {
            addCriterion("stamina_lv_data not like", value, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataIn(List<String> values) {
            addCriterion("stamina_lv_data in", values, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataNotIn(List<String> values) {
            addCriterion("stamina_lv_data not in", values, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataBetween(String value1, String value2) {
            addCriterion("stamina_lv_data between", value1, value2, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andStaminaLvDataNotBetween(String value1, String value2) {
            addCriterion("stamina_lv_data not between", value1, value2, "staminaLvData");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}